
function getRedirectToURI(index){
  if (index === 0) {
    wx.requestSubscribeMessage({
      tmplIds: ['uDgukjuL1wdlg-ZTmt6iEOHRCDni2M1g0qsaJByYxgw',
      'CgSkX1UN123rlfAQ9zXiMyfiF1ugDkOsd8yLmvcbHt0',
      'Gc_gkdb1wX-cSBFPD4D5D31w6ZOojJeDckkzo49pBmQ'
      ],
    })
    wx.redirectTo({
      url: '/pages/TradingArea/index',
    })
  } 
  else if (index == 1) {
    wx.redirectTo({
      url: '/pages/Chain/Chain',
    })
  } else {
    wx.redirectTo({
      url: '/pages/myCenter/myCenter',
    })
  }
}

  module.exports = {
    getRedirectToURI
  }